import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:geomancy/styles/index.dart';

class CommonText extends StatelessWidget {
  final String txt;
  final double? fontSize;
  final double? height;
  final FontWeight? weight;
  final TextAlign? textAlign;
  final double? letterSpacing;
  const CommonText({super.key, required this.txt, this.fontSize, this.height, this.textAlign, this.weight, this.letterSpacing});

  @override
  Widget build(BuildContext context) {
    return Text(
      txt,
      textAlign: textAlign ?? TextAlign.start,
      style: TextStyle(
        fontSize: fontSize ?? 30.sp,
        height: height,
        color: ColorStyle.textColor,
        fontWeight: weight,
        letterSpacing: letterSpacing
      ));
  }
}
